package com;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling // 开始定时器
public class WaterApplication {

    public static void main(String[] args) {
//        SpringApplication.run(WaterApplication.class, args);
        /** Spring boot出现java.awt.HeadlessException的解决 */
        SpringApplicationBuilder builder = new SpringApplicationBuilder(WaterApplication.class);
        builder.headless(false).run(args);
    }

}
